package com.yami.shop.vo.message.message;

import com.yami.shop.vo.advice.AdviceTxtVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChatroomMessageVo implements Serializable {
    @NotEmpty(message = "发送人id不能为空")
    @Schema(description = "发送人id", required = true)
    private String senderId;

    @Schema(description = "消息内容")
    private AdviceTxtVo content;
}
